package com.hly.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author ldm
 * @create 2020-09-23 16:20
 */
public class NoStockException extends RuntimeException {
    @Getter @Setter
    private Long skuId;
    public NoStockException(Long skuId) {
        super(skuId+"号商品库存不足");
    }
    public NoStockException(String msg) {
        super(msg);
    }
}
